package com.minigame.rpc.network;

import java.util.HashMap;
import java.util.Map;

public class RpcMsg {

    public final static int HEAD_LENGTH = 12;

    private int cmd;

    private byte[] headDatas;
    private byte[] bodyDatas;

    public RpcMsg() {
    }

    public RpcMsg(int cmd, byte[] headDatas, byte[] bodyDatas) {
        this.cmd = cmd;
        this.headDatas = headDatas;
        this.bodyDatas = bodyDatas;
    }

    public int getCmd() {
        return cmd;
    }

    public void setCmd(int cmd) {
        this.cmd = cmd;
    }

    public byte[] getHeadDatas() {
        return headDatas;
    }

    public void setHeadDatas(byte[] headDatas) {
        this.headDatas = headDatas;
    }

    public byte[] getBodyDatas() {
        return bodyDatas;
    }

    public void setBodyDatas(byte[] bodyDatas) {
        this.bodyDatas = bodyDatas;
    }
}
